'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('请求参数:', event)
	// 查询数据表
	let response = await db.collection('music_list').get()
	console.log('返回数据:', response)
	//返回数据给客户端
	return {
		code: 200,
		message: "数据请求成功",
		data: response.data
	}
};
